import { createApp } from 'vue'
import App from './App.vue'
import router from "../router";  //挂载刚才暴露的router对象
import ElementPlus from "element-plus" //导入element的组件
import "element-plus/dist/index.css" //导入element的样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue' //el里面所有的图标
const app = createApp(App)
//使用element-plus组件
app.use(ElementPlus)
//使用循环注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
//注意一定要先使用路由再挂载
app.use(router)
app.mount('#app')
